package com.ehotting.edsta.circuitDesign.bean.request;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class RequestExecute {

    /**总线通信类型**/
    private Prop bus;
    /**电压等级**/
    private Prop volt;
    /**采样通道数（模拟）**/
    private Prop analoguenum;
    /**采样通道数 （数字）**/
    private Prop digitalnum;
    /**处理器的类型**/
    private Prop controller;
    /**处理器的型号规格**/
    private Prop mode;
    /**存储器类型**/
    private Prop memory;
    /**设计考虑**/
    private Prop prior;
    /**耐压等级**/
    private Prop esd;
    /**最大功率**/
    private Prop power;

    private Prop qualitygrade;

    /**采样通道数值（模拟）**/
    private List<AnalogueData> analogue;
    /**采样通道数值 （数字）**/
    private List<DigitalData> digital;

    private String mainProjectId;



    @Data
    public static class AnalogueData{
        private Prop analogueno;
        private Prop analoguename;
        private Prop analoguetype;
        private Prop sample;
        private Prop signalmax;
        private Prop signalmin;
        private Prop maxdatarange;
        private Prop mindatarange;
        private Prop samplingbit;
        private Prop samplinglength;

    }

    @Data
    public static class DigitalData{
        private Prop digitalno;
        private Prop digitalname;
        private Prop intype;
        private Prop involt;

    }


    @Data
    public static class Prop{
        private String code;
        private String name;

        public Prop() {}

        public Prop(String code, String name) {
            this.code = code;
            this.name = name;
        }

    }

}
